import 'package:flutter/material.dart';

class AppTheme {
  static const Color primaryColor = Color(0xFF1E88E5);
  static const Color secondaryColor = Color(0xFF000000);
  static const Color accentColor = Color(0xFFFF9800);
  static const Color textPrimaryColor = Colors.white;
  static const Color textSecondaryColor = Color(0x80FFFFFF);
  
  static const double headingFontSize = 30.0;
  static const double subheadingFontSize = 20.0;
  static const double bodyFontSize = 16.0;
  
  static const double defaultPadding = 20.0;
  static const double defaultBorderRadius = 20.0;
  
  static LinearGradient mainGradient = LinearGradient(
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
    colors: [
      primaryColor.withOpacity(0.9),
      secondaryColor,
    ],
  );
  
  static BoxDecoration cardDecoration(bool isActive) {
    return BoxDecoration(
      boxShadow: [
        BoxShadow(
          color: isActive ? primaryColor : Colors.transparent,
          blurRadius: isActive ? 50 : 0,
        )
      ],
      color: isActive ? primaryColor : secondaryColor.withOpacity(.5),
      borderRadius: BorderRadius.circular(defaultBorderRadius),
    );
  }
  
  static ThemeData lightTheme = ThemeData(
    primaryColor: primaryColor,
    scaffoldBackgroundColor: Colors.transparent,
    iconTheme: const IconThemeData(color: textPrimaryColor),
    textTheme: const TextTheme(
      headlineLarge: TextStyle(
        color: textPrimaryColor,
        fontSize: headingFontSize,
        fontWeight: FontWeight.bold,
        letterSpacing: 6.0,
      ),
      bodyLarge: TextStyle(
        color: textPrimaryColor,
        fontSize: subheadingFontSize,
        fontWeight: FontWeight.bold,
      ),
      bodyMedium: TextStyle(
        color: textSecondaryColor,
        fontSize: bodyFontSize,
        fontWeight: FontWeight.normal,
      ),
    ),
  );
}